package com.inmobi.commons.internal;

import com.inmobi.commons.uid.UID;
import org.json.JSONException;
import org.json.JSONObject;

public class CommonsConfig
{
  static Log.INTERNAL_LOG_LEVEL a = Log.INTERNAL_LOG_LEVEL.NONE;
  static Log.INTERNAL_LOG_LEVEL b = a;
  private ThinICEConfig c = new ThinICEConfig();

  public CommonsConfig()
  {
    setFromJSON(new JSONObject());
  }

  public ThinICEConfig getTic()
  {
    return this.c;
  }

  // ERROR //
  public void setFromJSON(JSONObject paramJSONObject)
  {
    // Byte code:
    //   0: aload_1
    //   1: ldc 43
    //   3: invokevirtual 47	org/json/JSONObject:getJSONObject	(Ljava/lang/String;)Lorg/json/JSONObject;
    //   6: astore 12
    //   8: aload 12
    //   10: astore 7
    //   12: aload_1
    //   13: ldc 49
    //   15: invokevirtual 47	org/json/JSONObject:getJSONObject	(Ljava/lang/String;)Lorg/json/JSONObject;
    //   18: astore 11
    //   20: aload 11
    //   22: astore 9
    //   24: aload 9
    //   26: aload 7
    //   28: iconst_1
    //   29: invokestatic 55	com/inmobi/commons/internal/InternalSDKUtil:populateToNewJSON	(Lorg/json/JSONObject;Lorg/json/JSONObject;Z)Lorg/json/JSONObject;
    //   32: astore 10
    //   34: aload 10
    //   36: astore_1
    //   37: getstatic 61	com/inmobi/commons/uid/UID:commons	Lcom/inmobi/commons/uid/UID;
    //   40: aload_1
    //   41: ldc 63
    //   43: invokevirtual 47	org/json/JSONObject:getJSONObject	(Ljava/lang/String;)Lorg/json/JSONObject;
    //   46: invokevirtual 64	com/inmobi/commons/uid/UID:setFromJSON	(Lorg/json/JSONObject;)V
    //   49: aload_0
    //   50: getfield 28	com/inmobi/commons/internal/CommonsConfig:c	Lcom/inmobi/commons/internal/ThinICEConfig;
    //   53: aload_1
    //   54: ldc 66
    //   56: invokevirtual 47	org/json/JSONObject:getJSONObject	(Ljava/lang/String;)Lorg/json/JSONObject;
    //   59: invokevirtual 68	com/inmobi/commons/internal/ThinICEConfig:a	(Lorg/json/JSONObject;)V
    //   62: aload_1
    //   63: ldc 70
    //   65: getstatic 20	com/inmobi/commons/internal/CommonsConfig:b	Lcom/inmobi/commons/internal/Log$INTERNAL_LOG_LEVEL;
    //   68: invokevirtual 74	com/inmobi/commons/internal/Log$INTERNAL_LOG_LEVEL:getValue	()I
    //   71: iconst_0
    //   72: iconst_2
    //   73: invokestatic 78	com/inmobi/commons/internal/InternalSDKUtil:getIntFromJSON	(Lorg/json/JSONObject;Ljava/lang/String;III)I
    //   76: i2l
    //   77: invokestatic 84	com/inmobi/commons/internal/Log:getLogLevelValue	(J)Lcom/inmobi/commons/internal/Log$INTERNAL_LOG_LEVEL;
    //   80: putstatic 20	com/inmobi/commons/internal/CommonsConfig:b	Lcom/inmobi/commons/internal/Log$INTERNAL_LOG_LEVEL;
    //   83: return
    //   84: astore 6
    //   86: new 30	org/json/JSONObject
    //   89: dup
    //   90: invokespecial 31	org/json/JSONObject:<init>	()V
    //   93: astore 7
    //   95: goto -83 -> 12
    //   98: astore 8
    //   100: new 30	org/json/JSONObject
    //   103: dup
    //   104: invokespecial 31	org/json/JSONObject:<init>	()V
    //   107: astore 9
    //   109: goto -85 -> 24
    //   112: astore_2
    //   113: ldc 86
    //   115: new 88	java/lang/StringBuilder
    //   118: dup
    //   119: invokespecial 89	java/lang/StringBuilder:<init>	()V
    //   122: ldc 91
    //   124: invokevirtual 95	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   127: aload_1
    //   128: invokevirtual 99	org/json/JSONObject:toString	()Ljava/lang/String;
    //   131: invokevirtual 95	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   134: invokevirtual 100	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   137: invokestatic 104	com/inmobi/commons/internal/Log:internal	(Ljava/lang/String;Ljava/lang/String;)V
    //   140: goto -103 -> 37
    //   143: astore 5
    //   145: ldc 86
    //   147: ldc 106
    //   149: invokestatic 104	com/inmobi/commons/internal/Log:internal	(Ljava/lang/String;Ljava/lang/String;)V
    //   152: return
    //   153: astore 4
    //   155: goto -93 -> 62
    //   158: astore_3
    //   159: goto -110 -> 49
    //
    // Exception table:
    //   from	to	target	type
    //   0	8	84	java/lang/Exception
    //   12	20	98	java/lang/Exception
    //   0	8	112	org/json/JSONException
    //   12	20	112	org/json/JSONException
    //   24	34	112	org/json/JSONException
    //   86	95	112	org/json/JSONException
    //   100	109	112	org/json/JSONException
    //   62	83	143	java/lang/Exception
    //   49	62	153	org/json/JSONException
    //   37	49	158	org/json/JSONException
  }

  public void setTic(ThinICEConfig paramThinICEConfig)
  {
    this.c = paramThinICEConfig;
  }

  public JSONObject toJSON()
    throws JSONException
  {
    JSONObject localJSONObject1 = new JSONObject();
    JSONObject localJSONObject2 = new JSONObject();
    JSONObject localJSONObject3 = UID.commons.toJSON();
    JSONObject localJSONObject4 = this.c.toJSON();
    localJSONObject1.put("AND", localJSONObject2);
    localJSONObject1.put("common", new JSONObject());
    localJSONObject2.put("ids", localJSONObject3);
    localJSONObject2.put("tic", localJSONObject4);
    localJSONObject2.put("ll", b);
    return localJSONObject1;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.inmobi.commons.internal.CommonsConfig
 * JD-Core Version:    0.6.2
 */